from matplotlib import pyplot as plt
import numpy as np

data_set_01 = np.random.randint(80, 141, 80)
plt.figure(figsize=(20, 15), dpi=80)
distance = 2
group_num = int((max(data_set_01) - min(data_set_01)) / distance) + 1
plt.hist(data_set_01, bins=group_num)
plt.xticks([i for i in range(min(data_set_01),max(data_set_01))][::2],
           [i for i in range(min(data_set_01),max(data_set_01))][::2])
plt.grid(linestyle="-",alpha=1)
plt.show()
